package com.jdy.hotel.ui.forget;


import com.jdy.hotel.net.DataSource;
import com.jdy.hotel.net.NetWork;
import com.jdy.hotel.net.callback.BaseCallback;
import com.jdy.hotel.support.BaseViewModel;

public class ForgetViewModel extends BaseViewModel {

    void getAuthenticationCode() {
        if (checked()) {
            String url = DataSource.SERVER_IP + "/user/check";
            NetWork.doPost(url, get(), new BaseCallback(this));
        }
    }

    void changePassword() {
        if (checked()) {
            String url = DataSource.SERVER_IP + "/user/update";
            NetWork.doPost(url, get(), new BaseCallback(this));
        }
    }
}
